namespace Cos.Core.NHibernate
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class VideoTagMap : ClassMap<VideoTagDataModel>
    {
        #region Constructors and Destructors

        public VideoTagMap()
        {
            this.Table("VideoTag");
            this.LazyLoad();
            this.CompositeId()
                .KeyProperty(x => x.VideoId)
                .KeyProperty(x => x.TagName)
                .KeyProperty(x => x.CultureCode);

            Map(x => x.VideoId).Column("VideoID");

            // References(x => x.Tag).Column("TagName");
            // References(x => x.Tag).Column("CultureCode");
        }

        #endregion
    }
}